#pragma once
#include <vector>
#include <list>
#include <iostream>
#include <assert.h>
using namespace std;
namespace zrc
{
	template<class T,class Container=vector<T> >
	class queue
	{
	public:
		bool empty()
		{
			return _con.empty();
		}

		size_t size()
		{
			return _con.size();
		}

		const T& front()const
		{
			return _con.front();
		}
		const T& back()const 
		{
			return _con.back();
		}
				
		void push(const T& val)
		{
			_con.push_back(val);
		}
			
		void pop()
		{
			_con.erase(_con.begin());
		}

	private:
		Container _con;
	};
	void Test_Queue01()
	{
		queue<int, vector<int>> q;
		q.push(1);
		q.push(2);
		q.push(3);
		q.push(4);
		//size_t size = q.size();
		while (!q.empty())
		{
			cout << q.front() << " ";
			q.pop();
		}
	}
}